<include file="Restaurant:header" />
<head>
	<link rel="stylesheet" href="/assets/base/repair/js/sweetalert/lib/sweet-alert.css">
</head>
<body>
<div class="wraper">
    <div class="load">
        <img class="load-bee" src="/assets/base/restaurant/images/load-bee.png"/>

    </div>
    <div class="top">
        <p>
            <a href="/restaurant/ZduMobile/menu/restaurant_id/{BEESCRM:$restaurant_id}/res_id/{BEESCRM:$res_id}" class="iconfont icon-zuo pull-left"></a>
            <a href="#" class="order-all pull-left">确认订单</a>
        </p>
    </div>
	<div style="color: red;text-align: center;width: 100%;height: 25px;line-height: 25px;margin-top: 6px;">温馨提示：付款后不能退单</div>
    <!--<div class="order-info">-->
        <!--<div class="lists">配送地址</div>-->
        <!--<div class="lists tb-mode">-->
            <!--<div class="tb-cell list-left">-->
	            <!--<p><span class="user-name">{BEESCRM:$address['real_name']}</span>{BEESCRM:$address['mobile']}</p>-->
	            <!--<p>{BEESCRM:$address['community_name']}{BEESCRM:$address['building_name']}{BEESCRM:$address['room']}{BEESCRM:$address['address_detail']}</p>-->
	            <!--<input type="hidden" class="address_id" value="{BEESCRM:$address['address_id']}">-->
	            <!--<input type="hidden" class="username" value="{BEESCRM:$address['real_name']}">-->
	            <!--<input type="hidden" class="mobile" value="{BEESCRM:$address['mobile']}">-->
	            <!--<input type="hidden" class="address" value="{BEESCRM:$address['community_name']}{BEESCRM:$address['building_name']}{BEESCRM:$address['room_name']}{BEESCRM:$address['address_detail']}">-->
            <!--</div>-->
            <!--<div class="tb-cell list-right"><a id='change_addr' onclick="huoqu()" data-url="/restaurant/ZduMobile/address/order_id/{BEESCRM:$order_id}/res_id/{BEESCRM:$res_id}/type/1001" class="order-btn">更换地址</a></div>-->
        <!--</div>-->
    <!--</div>-->
    <!--<div class="order-info">-->
        <!--<div class="lists tb-mode">-->
            <!--<div class="tb-cell list-left">就餐时间</div>-->
            <!--<div class="tb-cell list-right">-->
                <!--<select id="send_time">-->
	                <!--<volist name="time" id="vo">-->
		                <!--<option <if condition="$stime eq $vo">selected</if> >{BEESCRM:$vo}</option>-->
	                <!--</volist>-->
                <!--</select>-->
                <!--<span class="triangle"></span>-->
            <!--</div>-->
        <!--</div>-->
    <!--</div>-->
    <div class="order-info">
        <div class="lists tb-mode">
            <div class="tb-cell list-left">支付方式</div>
            <div class="tb-cell list-right" style="width: 50%;" id="pay_type">
                <a href="#" class="order-btn weipay weipay_check" data-type="4"  style="margin-right: 4px;">校园卡支付</a>
            </div>
        </div>
    </div>
    <div class="order-lists lists">
        <div class="lists tb-mode">
            <a href="#" class="tb-cell list-left">菜单详情<!--（<span class="num">2</span>个菜）--></a>
        </div>
        <volist name="data.RestaurantOrderGoods" id="vo">
	    <div class="lists tb-mode foods">
            <a href="#" class="tb-cell list-left">
                <div class="img-box"><img src="{BEESCRM:$vo['goods_logo']}"></div>
            </a>
            <a href="#" class="tb-cell list-center">
                <p>{BEESCRM:$vo['goods_name']}</p>
                <p class="prize">{BEESCRM:$vo['goods_price']}元</p>
            </a>
            <div class="tb-cell list-right">
                <div class="tb-mode amount" style="text-align: center;border:0;">
	                数量：{BEESCRM:$vo['goods_num']}
                </div>
            </div>
        </div>
        </volist>
        <div class="lists tb-mode">
            <div class="tb-cell list-right">总价：<span class="num">{BEESCRM:$data.moneySum}元<if condition="$shipment gt 0">+{BEESCRM:$shipment}运费</if></span></div>
        </div>
        <div class="lists bottom-none">
            <input value="" placeholder="特殊需要请备注" id="memo"/>
        </div>
    </div>
	<input type="hidden" class="restaurant_id" value="{BEESCRM:$restaurant_id}">
	<input type="hidden" id="res_id" value="{BEESCRM:$res_id}">
    <input type="hidden" id="campuscard_bind" value="{BEESCRM:$campuscard_bind}">
    <input type="hidden" id="bind_url" value="{BEESCRM:$bind_url}">

    <div class="btn-box">
        <form id="form_campuscard" method="post" action="{BEESCRM:$interface_ip}/{BEESCRM:$interface_name}">
            <input type="hidden" name="tranamt" value="" /><!--交易金额1-->
            <input type="hidden" name="account" value="" /><!--学生账号-->
            <input type="hidden" name="sno" value="" /><!--学工号-->
            <input type="hidden" name="toaccount" value="" /><!--商户账号1-->
            <input type="hidden" name="thirdsystem" value="" /><!--系统注册ID1-->
            <input type="hidden" name="thirdorderid" value="" /><!--第三方订单号1-->
            <input type="hidden" name="ordertype" value="" /><!--接入类型1-->
            <input type="hidden" name="sign" value="" /><!--sign签名-->
            <input type="hidden" name="orderdesc" value="" /><!--商品名称-->
            <input type="hidden" name="praram1" value="" /><!--第三方系统备注字段-->
            <input type="hidden" name="thirdurl" value="" /><!--第三方系统备注字段-->
            <input type="hidden" name="errorurl" value="" /><!--第三方系统备注字段-->
        </form>
        <a href="#" class="btn green-btn pay-btn" data-order_id="{BEESCRM:$order_id}">立即付款</a>
    </div>
</div>

<include file="Restaurant:commonJS" />
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script src="/assets/restaurant/js/order.js"></script>
<script>
    $('.classify').click(function(){
        $('.menu-lists').addClass('show-menu');
    });
    $('.close').click(function(){
        $('.menu-lists').removeClass('show-menu');
    });

    $("#pay_type").on("click",".weipay",function () {
        $(this).removeClass('btn-gray').addClass('weipay_check').siblings().removeClass('weipay_check').addClass('btn-gray');
    });
</script>
</body>
</html>
